from mcp.server.fastmcp import FastMCP

#实例化FastMCP
mcp = FastMCP("Weather MCP Server")



if __name__ == "__main__":
    print(" MCP Server Start!")
    #启动mcp服务:有两种协议，分别是stdio和tcp，stdio模式下，transport参数必须为stdio
    mcp.run(transport="sse")